import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner scanner=new Scanner(System.in);
        String s=scanner.nextLine();
        //System.out.println(s);
        if(s.contains("+")||s.contains("-")||s.contains("*")||s.contains("/")) {
            //缺ABC
            String s1[]=s.split("=");
            //缺c
            String s2=s1[0];
            if(s1[1].equals("?")) {
                int id=0;
                for(int i=0;i<s2.length();i++) {
                    if(s2.charAt(i)<'0'||s2.charAt(i)>'9') {
                        id=i;
                        break;
                    }
                }
                int a=Integer.parseInt(s2.substring(0, id));
                int b=Integer.parseInt(s2.substring(id+1, s2.length()));
                if(s.contains("+"))System.out.println(a+b);
                if(s.contains("-"))System.out.println(a-b);
                if(s.contains("*"))System.out.println(a*b);
                if(s.contains("/"))System.out.println(a/b);
            }else {
                //缺ab
                int c=Integer.parseInt(s1[1]);
                int id=0;
                for(int i=0;i<s2.length();i++) {
                    if(s2.charAt(i)=='+'||s2.charAt(i)=='-'||s2.charAt(i)=='*'||s2.charAt(i)=='/') {
                        id=i;
                        break;
                    }
                }
                int a=0;
                if(s2.charAt(id-1)>='0'&&s2.charAt(id-1)<='9') {
                    a=Integer.parseInt(s2.substring(0, id));
                    if(s.contains("/"))System.out.println(a/c);
                }else {
                    a=Integer.parseInt(s2.substring(id+1, s2.length()));
                    if(s.contains("/"))System.out.println(c*a);
                }
                if(s.contains("+"))System.out.println(c-a);
                if(s.contains("-"))System.out.println(c+a);
                if(s.contains("*"))System.out.println(c/a);
            }
        }else {//缺+-*/
            String s1[]=s.split("=");
            int c=Integer.parseInt(s1[1]);
            String s2=s1[0];
            int id=0;
            for(int i=0;i<s2.length();i++) {
                if(s2.charAt(i)<'0'||s2.charAt(i)>'9') {
                    id=i;
                    break;
                }
            }
            int a=Integer.parseInt(s2.substring(0, id));
            int b=Integer.parseInt(s2.substring(id+1, s2.length()));
            //System.out.println(a+" "+b+" "+c);
            if(a+b==c)System.out.println("+");
            if(a-b==c)System.out.println("-");
            if(a*b==c)System.out.println("*");
            if(a/b==c)System.out.println("/");
        }
    }
}